package Mediator;

public class User {
    private String userName;

    public User(String userName)
    {
        this.userName=userName;
    }

    String getName()
    {
        return userName;
    }

    public void sendMessage(String message)
    {
        ChatRoom.publishMessage(this,message);
    }
}
